<?php
	header("content-type:text/html;charset=utf-8");
	include('connect.php');
	$d = (new Datetime)->format('Y-m-d H:i:s');
	$emcplace = $_POST['emcplace'];
	$emcName = $_POST['emcName'];
	// echo $emcplace,",";
	$sql = "update totalinfo set nowState = '疏散中' , emcplace = '{$emcplace}' ,emcName = '{$emcName}' where 1 order by time desc limit 1";
	echo $sql;
	$db->query($sql);
?>